﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.vehicle.apply
{
    public partial class vehicle_now :  ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new VehicleUsageDao().SelectNowAll(base.Conn, base.User.Identity.Name, false);
            if (table.Rows.Count > 0)
            {
                this.litNavCount.Text = "共<span class=\"big4\">&nbsp;" + table.Rows.Count.ToString() + "</span>&nbsp;条车辆记录";
                this.rptUsage.DataSource = table;
                this.rptUsage.DataBind();
            }
            else
            {
                this.litMessage.Text = base.ShowMessage("无使用中车辆");
            }
        }

    }
}
